class Album < ActiveRecord::Base
  
  has_many :multimedias
  has_many :histories
  
  belongs_to :user
  
  has_and_belongs_to_many :cores, :foreign_key => 'album_id', :association_foreign_key => 'core_id'
  
  validates_presence_of :name, :user
  
end
